<?php include_once './application/views/sys_admin/common/header.php';  ?>

<!-- admin_main -->
<div class="admin_main">
	<!-- Admin_top end -->
	<?php include_once './application/views/sys_admin/common/account_left.php';  ?>
	<!-- Admin_Left End -->
	<div class="admin_right">
		<div class="admin_right_title">
			<strong>投标管理</strong> &gt;&gt; 每个标详细页面
		</div>
		<div class="admin_borrow">
		<div class="admin_borrow_title" style="margin: 10px 0;">
				<h2>投标记录</h2>
				<div class="borrow_content_wrap" style="display: block;">
				<?php if($borrow_tender_list){?>
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="funds graytable">
                    <tbody>
                         <tr class="title">
                                        <th width="15%">投资人</th>
                                        <th width="15%">当前年利率</th>
                                        <th width="15%">投标金额</th>
                                        <th width="15%">有效金额</th>
                                        <th width="10%">代金卷金额</th>
                                        <th width="15%">投标时间</th>
										<th width="10%">状态</th>
										<th width="10%">操作</th>
                        </tr>
                         <?php foreach($borrow_tender_list as $borrow_tender){ ?>
                         	 <tr>
	                           <td><div class="font_lan"><?php echo $borrow_tender['username'];?></div></td>
	                           <td><?php if($borrow['award']=='1'){echo $borrow['apr']+$borrow['funds'];}else{echo $borrow['apr'];}?>%</td>
	                           <td><div class="font_Orange"><?php echo number_format($borrow_tender['money'],2);?>元</div></td>
	                           <td><div class="font_Orange"><?php echo number_format($borrow_tender['account'],2);?>元</div></td>
	                           <td><div class="font_Orange"><?php echo number_format($borrow_tender['money']-$borrow_tender['account'],2);?>元</div></td>
	                           <td><?php echo date('Y-m-d H:i',$borrow_tender['add_time']);?></td>
							  <td><div class="font_lan">
							  	<?php if(($borrow_tender['money'] == $borrow_tender['account']) && $borrow_tender['fstatus'] != 3){?>
							  		<font>全部通过</font>
							  	<?php }else if($borrow_tender['fstatus'] == 3){?>
							  			已撤回
							  	<?php }else{?>
							  		部分通过
							  	<?php }?>
							  	</div>
							  </td>
							  <td>
							  		<?php if($borrow['fstatus'] != 3 && $borrow_tender['fstatus']!=3 && $borrow['work_time']==2){?>
							  			<a href="javascript:if(confirm('你确定撤回？')){withdraw_the_tender(<?php echo $borrow_tender['id'];?>);}">撤标</a>
							  		<?php }else{?> ---<?php }?>
							  </td>
							</tr>
                         <?php }?>
                    </tbody>
                </table>
               <?php }else{?>
               		<p>暂无数据</p>
                <?php }?>
			</div>
			</div>
		</div>
		</body>
</html>